import module from '../../module'

export default name => {
  const root = `${module.code}/${name}/`
  const crud = $http.crud(root)

  crud.envBusPriceUpdate = params => {
    return $http.post('/dispatch/env_bus_price/update', params)
  }
  crud.tartgetInfoQuery = params => {
    return $http.get('/baseinfo/target_info/query', params)
  }

  return {
    ...crud
  }
}
